import request from '@/utils/request'


// elasticsearch导入数据
export function importData() {
  return request({
    url: '/elasticsearch/import_data',
    method: 'post'
  })
}


// elasticsearch创建索引
export function createIndex() {
  return request({
    url: '/elasticsearch/create_index',
    method: 'post',
  })
}

// elasticsearch删除索引
export function deleteIndex() {
  return request({
    url: '/elasticsearch/delete_index',
    method: 'post',
  })
}


// 通过id更新用户信息
export function updateUserById(userId,data) {
  return request({
    url: '/user/' + userId,
    method: 'put',
    data: data
  })
}


